/*
 * Copyright (C) 2009 Ionut Dediu <deionut@yahoo.com>
 *
 * Licensed under the GNU General Public License Version 2
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// SmartCamConst.h

#ifndef __SMART_CAM_CONST_H__
#define __SMART_CAM_CONST_H__

// main application view uid
const TUid KUidViewFinderView = { 1 };

// settings view uid
const TUid KUidSettingsView = { 2 };

const TUint KDefaultSendBufferSize = 4096;
const TInt KDefaultPortNumber = 9361;

_LIT(KServerTransportName, "RFCOMM");
_LIT(KServerName, "Server name:");

_LIT(KConnected, "Connected");
_LIT(KDisconnected, "Disconnected");

_LIT(KStrResolveNameTimedOut, "Could not resolve name, request timed out...");
_LIT(KStrFmtCouldNotResolveName, "Could not resolve name %d");
_LIT(KStrConnectionTimedOut, "Could not connect, request timed out...");
_LIT(KStrFmtCouldNotConnect, "Could not connect %d");
_LIT(KSettingsFileName, "SmartCamSettings.dat");
_LIT(KGfxFileName, "SmartCamGfx.mif");

_LIT8(KJpgMime, "image/jpeg");
const TInt KJpegQualityFactor = 60;

const TInt KIpAddressLen = 15;
const TInt KDnsLookupTimeout = 10000000; // 10 seconds time-out
const TInt KConnectionTimeout = 20000000; // 20 seconds time-out

typedef enum
	{
	EConnectionUsb = 0,
	EConnectionBluetooth = 1,
	EConnectionInet = 2
	} TConnType;

_LIT(KContextApplication, "ContextApplication"); //The Application

#endif//__SMART_CAM_CONST_H__
